package com.xmutca.sso.server.token;

/**
 * @author: 彭伟煌(pengweihuang@xmutca.com)
 * @create: 2016-08-08 16:49
 */
public class UsernamePasswordToken extends org.apache.shiro.authc.UsernamePasswordToken {

    private String redirectUrl;

    private boolean xmlHttpRequest;

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    public boolean isXmlHttpRequest() {
        return xmlHttpRequest;
    }

    public void setXmlHttpRequest(boolean xmlHttpRequest) {
        this.xmlHttpRequest = xmlHttpRequest;
    }

    public UsernamePasswordToken() {
        super();
    }

    public UsernamePasswordToken(String username, String password, boolean rememberMe, String host, String redirectUrl) {
        super(username, password, rememberMe, host);
        this.redirectUrl = redirectUrl;
    }

    public UsernamePasswordToken(String username, String password, boolean rememberMe, String host, String redirectUrl, boolean xmlHttpRequest) {
        super(username, password, rememberMe, host);
        this.redirectUrl = redirectUrl;
        this.xmlHttpRequest = xmlHttpRequest;
    }
}